package cn.wolfcode.rbac.service;

import cn.wolfcode.rbac.domain.Employee;
import cn.wolfcode.rbac.qo.EmployeeQo;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author xiahuihui
 * #Description EmployeeService
 * #Date: 2022/7/2 09:36
 */
public interface EmployeeService {

    //查询所有员工
    public List<Employee> findEmployeeAll();

    //根据id删除员工
    public void deleteEmployee(Long id);

    //条件查询员工
    public List<Employee> findByCondition(EmployeeQo qo);

    //分页查询员工
    public PageInfo<Employee> findByPage(EmployeeQo qo);

    //添加员工
    public void save(Employee employee,Long[] roleIds);

    //根据id来查询员工
    public Employee fingById(Long id);

    //导入
    public void importXls(MultipartFile file);

    //导出
    public Workbook exportXls();
}
